From: Giovanni Campagna Date: Sun, 11 Aug 2013 16:58:46 +0000 (+0200) Subject: NotificationDaemon: fix fallout from db75734774e97f735b9d5da36ef04c7fa043b26d X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3785 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=114d32a28f3b594419f7e8cd332e169f0fef1519;p=gnome-shell.git NotificationDaemon: fix fallout from db75734774e97f735b9d5da36ef04c7fa043b26d The public API of ShellAppSystem was changed, now both the desktop and startup wmclass must be looked up. https://bugzilla.gnome.org/show_bug.cgi?id=705801 --- diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js index 1a49827a0..de4271131 100644 --- a/js/ui/notificationDaemon.js +++ b/js/ui/notificationDaemon.js @@ -734,7 +734,11 @@ const Source = new Lang.Class({ return app; if (this.trayIcon) { - app = Shell.AppSystem.get_default().lookup_wmclass(this.trayIcon.wm_class); + app = Shell.AppSystem.get_default().lookup_startup_wmclass(this.trayIcon.wm_class); + if (app != null) + return app; + + app = Shell.AppSystem.get_default().lookup_desktop_wmclass(this.trayIcon.wm_class); if (app != null) return app; }